/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package banksystem;
import javax.swing.JFrame;

/**
 *
 * @author ROBM
 */
public class ControllerStub extends Controller {
	
	public boolean depositCalled;
	public boolean withdrawCalled;
	public boolean saveCalled;
	public boolean transferCalled;
	public boolean createCalled;
	public double mAmount;
	public JFrame saveWindow;
	public String str;
	public AccountType mType;
	
	public ControllerStub()
	{
		super(null);
		depositCalled = false;
		saveCalled = false;
		mAmount = 0.0;
		
	}
	
	@Override
	public void DepositToAccount(Double amount)
	{	
		depositCalled = true;
		this.mAmount = amount.doubleValue();
	}
	
	@Override
	public void WithdrawFromAccount(Double amount)
	{
		withdrawCalled = true;
		this.mAmount = amount.doubleValue();
	}
	
	@Override
	public void TransferBetweenAccounts(double amount)
	{
		transferCalled = true;
		mAmount = amount;
	}
	
	@Override
	public void SaveAndRestart(JFrame window)
	{
		saveCalled = true;
		saveWindow = window;
	}
	
	@Override
	public void CreateAccount(String accountName, AccountType type, double balance)
	{
		createCalled = true;
		str = accountName;
	}
}
